
using UnityEngine.UI;

public class VersionPanel : BasePanel
{
    public Button closeButton;

    public override void OnClose()
    {
        base.OnClose();
    }

    public override void OnInit()
    {
        base.OnInit();

        path="UI/Panel/VersionPanel";
    }

    public override void OnShow(params object[] par)
    {
        base.OnShow(par);

        closeButton=item.transform.Find("Close").GetComponent<Button>();

        closeButton.onClick.AddListener(CloseButton);
    }

    public void CloseButton()
    {
        Close();

        AudManager.instance.PlayUIAud(AudManager.instance.uiDic["点击"], 1f);
    }
}
